home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15867 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in2.uu.net!world!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: What are the differences between structures and classes in C++ ?
  5. Message-ID: <DpJx5E.6t1@mv.mv.com>
  6. Mime-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. Organization: GSSI
  9. Date: Mon, 8 Apr 1996 16:15:14 GMT
  10. References: <4k5m65$av@hpscit.sc.hp.com>
  11. X-Newsreader: WinVN 0.99.7
  12. X-Nntp-Posting-Host: gssi.mv.com
  13.  
  14. In article <4k5m65$av@hpscit.sc.hp.com>, raghur says...
  15. >
  16. >Hi,
  17. >     Please mail me the differences between structures and classes in C++.
  18. >Raghu.
  19. >
  20.  
  21. There are exactly the same except only one thing: default protection mode
  22. for members. For classes it is "private", for structures - "public".
  23.  
  24. May be you want to know about closest analog for the "C" strictures in C++.
  25. It is aggregate classes - classes without constructors, private or protected
  26. members, base classes or virtual functions. 
  27.  
  28.  
  29. -- 
  30. <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
  31. ---------------------------------------------------------------
  32. Michael Furman,                       (603)893-1109
  33. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  34. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  35. North Salem, NH 03073-0097            71543.1334@compuserve.com
  36. ---------------------------------------------------------------
  37.  
  38.